import { getPrescritionList } from './common/utils/getPrescriptionList';
import storage from '@system.storage';
import router from '@system.router';
export default {
    onCreate() {
        console.info('AceApplication onCreate');
        let token
        storage.get({
            key:"token",
            success(data){
                token = data
                if(data!=""){
                    console.info("YZJ token获取成功"+JSON.stringify(data));
                    router.push({
                        uri:"pages/index/index"
                    })
                }

            },
            fail(err){
                console.info("YZJ token获取失败")
            }

        })


    },

    onDestroy() {
        console.info('AceApplication onDestroy');
    }
};
